package com.tt.utils.wordUtils.entity;

import lombok.Data;

import java.util.List;

/**
 * @Title: LinkContent
 * @Author zl
 * @Package com.oberyun.goHAZOP.utils.wordUtils.entity
 * @Date 2025/9/17 16:08
 * @description: 超链接地址
 */
@Data
public class LinkContent {
    /**
     * 对应key
     */
    private String key;

    private List<LinkBody> linkBody;


    public LinkContent(String key, List<LinkBody> imageBody) {
        this.key = key;
        this.linkBody = imageBody;
    }

    /**
     * 超链接详情
     */
    @Data
    public static class LinkBody {
        /**
         * 超链接标题
         */
        private String title;
        /**
         * 超链接地址
         */
        private String linkUrl;

        public LinkBody(String title, String linkUrl) {
            this.title = title;
            this.linkUrl = linkUrl;
        }
    }

}
